import api from '@/api/api'

const userManageRoles = {
    name: '用户管理',
    role: '/userManager',
    children: [{
        name: '用户信息管理',
        role: '/user',
        api: [api.memberGet,
            api.groupList],
        children: [{
            name: '用户列表',
            role: '/user/list',
            api: [api.memberList]
        }, {
            name: '添加',
            role: '/user/save',
            api: [api.memberSave,api.memberUploadExcel]
        }, {
            name: '删除',
            role: '/user/delete',
            api: [api.memberDelete]
        }, {
            name: '修改',
            role: '/user/update',
            api: [api.memberUpdate]
        }, {
            name: '审核',
            role: '/user/check',
            api: [api.memberCheck]
        }]
    },
        {
            name: '用户组管理',
            role: '/group',
            api: [
                api.groupList,
            ],
            children: [{
                name: '列表',
                role: '/group/list',
                api: [api.groupList]
            }, {
                name: '添加',
                role: '/group/add',
                api: [api.groupSave]
            }, {
                name: '详情',
                role: '/group/get',
                api: [api.groupGet]
            }, {
                name: '修改',
                role: '/group/edit',
                api: [api.groupUpdate]
            }, {
                name: '删除',
                role: '/group/delete',
                api: [api.groupDelete]
            }]
        }
        , {
            name: '第三方账户绑定',
            role: '/account',
            children: [{
                name: '列表',
                role: '/account/list',
                api: [api.accountList]
            }, {
                name: '删除',
                role: '/account/delete',
                api: [api.accountDelete]
            }]
        }, {
            name: '管理员（全站）',
            role: '/adminGlobal',
            api: [
                api.adminGlobleList,
                api.adminGlobleGet,
                api.departmentList,
                api.adminValRank,
                api.roleList,
                api.siteList,
                api.groupList
            ],
            children: [{
                name: '列表',
                role: '/adminGlobal/list',
                api: [
                    api.adminGlobleList,
                ]
            }, {
                name: '删除',
                role: '/adminGlobal/delete',
                api: [api.adminGlobleDelete]
            }, {
                name: '修改',
                role: '/adminGlobal/edit',
                api: [api.adminGlobleUpdate, api.adminGlobleGet]
            }, {
                name: '添加',
                role: '/adminGlobal/add',
                api: [api.adminGlobleSave, api.adminGlobleGet]
            }]
        }, {
            name: '管理员（本站）',
            role: '/adminGlocal',
            api: [
                api.adminGlocalList,
                api.adminGlocalGet,
                api.departmentList,
                api.adminValRank,
                api.roleList,
                api.siteList,
                api.groupList
            ],
            children: [{
                name: '列表',
                role: '/adminGlocal/list',
                api: [
                    api.adminGlocalList,
                ]
            }, {
                name: '删除',
                role: '/adminGlocal/delete',
                api: [api.adminGlocalDelete]
            }, {
                name: '修改',
                role: '/adminGlocal/edit',
                api: [api.adminGlocalUpdate]
            }, {
                name: '添加',
                role: '/adminGlocal/add',
                api: [api.adminGlocalSave]
            }]
        }, {
            name: '操作日志',
            role: '/log',
            api: [
                api.logList,
            ],
            children: [{
                name: '列表',
                role: '/log/list',
                api: [
                    api.logList,
                ]
            }]
        }, {
            name: '站内信管理',
            role: '/message',
            api: [
                api.messageList, api.memberCheckName
            ],
            children: [{
                name: '列表',
                role: '/message/list',
                api: [api.messageList]
            }, {
                name: '发送',
                role: '/message/add',
                api: [api.messageSend, api.messageGet]
            }, {
                name: '查看',
                role: '/message/seek',
                api: [api.messageRead]
            }, {
                name: '回复',
                role: '/message/reply',
                api: [api.messageSend, api.messageReply]
            }, {
                name: '转发',
                role: '/message/forward',
                api: [api.messageSend, api.messageForward]
            }, {
                name: '还原',
                role: '/message/revert',
                api: [api.messageRevert]
            }, {
                name: '删除',
                role: '/message/delete',
                api: [api.messageTrash]
            }, {
                name: '彻底删除',
                role: '/message/deletes',
                api: [api.messageEmpty]
            }]
        }, {
            name: '角色管理',
            role: '/role',
            api: [
                api.roleList,
            ],
            children: [{
                name: '列表',
                role: '/role/list',
                api: [api.roleList]
            }, {
                name: '详情',
                role: '/role/get',
                api: [api.roleGet]
            }, {
                name: '添加',
                role: '/role/save',
                api: [api.roleSave]
            }, {
                name: '更改',
                role: '/role/update',
                api: [api.roleUpdate]
            }, {
                name: '删除',
                role: '/role/roleDelete',
                api: [api.roleDelete]
            }, {
                name: '成员列表',
                role: '/role/members',
                api: [api.roleMembers]
            }, {
                name: '成员移除',
                role: '/role/roleMembersDelete',
                api: [api.roleMembers, api.roleMembersDelete]
            }]
        }]
}
export default userManageRoles;
